//
//  MGYActionSheetView.h
//  AlertViewTool
//
//  Created by XiaoMing on 16/2/24.
//  Copyright © 2016年 XiaoMing. All rights reserved.
//

#import <UIKit/UIKit.h>


@class MGYActionSheetView;

typedef void (^MGYActionSheetViewDidSelectButtonBlock)(MGYActionSheetView *actionSheetView, NSInteger buttonIndex);

@interface MGYActionSheetView : UIView

+ (MGYActionSheetView *)showActionSheetWithTitle:(NSString *)title cancelButtonTitle:(NSString *)cancelButtonTitle destructiveButtonTitle:(NSString *)destructiveButtonTitle otherButtonTitles:(NSArray *)otherButtonTitles handler:(MGYActionSheetViewDidSelectButtonBlock)block;

- (instancetype)initWithTitle:(NSString *)title cancelButtonTitle:(NSString *)cancelButtonTitle destructiveButtonTitle:(NSString *)destructiveButtonTitle otherButtonTitles:(NSArray *)otherButtonTitles handler:(MGYActionSheetViewDidSelectButtonBlock)block;

- (void)show;
- (void)dismiss;

@end
